/*
 * Lenovo Group
 * Copyright (c) 2015-2016 All Rights Reserved.
 * Project Name: lmrp-android app
 * Create Time: 16-2-26 下午7:07
 */

package com.lenovo.mso2o.conf;

public enum HTTPMethod {
   GET("get"),
   PUT("put"),
   POST("post"),
   DELETE("delete");

   private String value;
   HTTPMethod(String value){
	   this.value=value;
   }
   public String getValue() {
		return value;
   }
   public HTTPMethod get(int type){
	   for(HTTPMethod c: HTTPMethod.values()){
		   if(c.getValue().equals(type)){
			   return c;
		   }
	   }
	   return null;
   }
   
}
